.message-item {
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: message-enter 0.3s ease-out;
}

@keyframes message-enter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  background: #007AFF;
  color: white;
  margin-left: auto;
  text-align: right;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
}

.ai-message {
  background: #F2F2F7;
  color: #1C1C1E;
  margin-right: auto;
  border: 1px solid #E5E5EA;
}

